﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using MockPrjTeam4.Entity;
using MockPrjTeam4.DAO;

namespace MockPrjTeam4.Biz
{
    public class OrganisationBiz
    {
        public static DataTable SearchTableOrg(int orgId)
        {
            return OrganisationDAO.SearchTableOrg(orgId);
        }

        public static bool SetOrgActive(int orgId)
        {
            return OrganisationDAO.SetOrgActive(orgId);
        }

        public static DataTable GetOrganisationsSP()
        {
            return OrganisationDAO.GetOrganisationsSP();
        }

        public static Organisation Search(int orgName)
        {
            return OrganisationDAO.Search(orgName);
        }

        public static Organisation SearchOrgName(string orgName)
        {
            return OrganisationDAO.SearchOrgName(orgName);
        }

        public static bool AddOrganisation(Organisation org)
        {
            return OrganisationDAO.AddOrganisation(org);
        }

        public static bool EditOrganisation(Organisation org)
        {
            return OrganisationDAO.EditOrganisation(org);
        }

        public static IList<Organisation> GetListOrganisations()
        {
            return OrganisationDAO.GetListOrganisations();
        }

        public static IList<Organisation> GetListActiveOrganisations()
        {
            return OrganisationDAO.GetListActiveOrganisations();
        }

        public static DataTable Search(string range, bool inActive)
        {
            return OrganisationDAO.Search(range, inActive);
        }

        public static bool Delete(int id)
        {
            return OrganisationDAO.Delete(id);
        }

        public static DataTable GetTableOrganisations(bool inActive)
        {
            return OrganisationDAO.GetTableOrganisations(inActive);
        }
    }
}